// 快捷访问
const getters = {
  sidebarOpened: state => state.app.sidebarOpened,
  tagsViewList: state => state.app.tagsViewList,
  menus: state => state.permission.menus,
  // return true表示用户信息存在
  hasUserInfo: state => {
    return JSON.stringify(state.user.userInfo) !== '{}'
  },
}
export default getters
